<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:include href="core\form.xsl"/>
	<xsl:include href="core\level-footer.xsl"/>
	
<xsl:template match="page">
	<xsl:choose>
		<xsl:when test="//page/theme = 1"><xsl:call-template name="page_vert"/></xsl:when>
 		<xsl:otherwise><xsl:call-template name="page_horiz"/></xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template name="page_vert">
	<table cellspacing="0" cellpadding="0" width="100%">
		<tr>
			<td valign="top">
				<table cellspacing="2" cellpadding="2">
					<xsl:choose>
						<xsl:when test="//page/image/@align='center'">
							<xsl:if test="//page/image and contains(//page/image, 'jpg')">
								<tr>
									<td align="center">
										<img>
											<xsl:attribute name="src"><xsl:value-of select="$media_path"/><xsl:value-of select="image"/></xsl:attribute>
											<xsl:attribute name="align"><xsl:value-of select="image/@align"/></xsl:attribute>
											<xsl:attribute name="alt"><xsl:value-of select="image/@alt"/></xsl:attribute>
											<xsl:attribute name="vspace">10</xsl:attribute>
											<xsl:attribute name="hspace">10</xsl:attribute>
										</img>
									</td>
								</tr>
							</xsl:if>
							<tr><td><xsl:value-of select="info" disable-output-escaping="yes"/></td></tr>
						</xsl:when>
						<xsl:otherwise>
							<tr>
								<td>
									<xsl:if test="//page/image and contains(//page/image, 'jpg')">
										<img>
											<xsl:attribute name="src"><xsl:value-of select="$media_path"/><xsl:value-of select="image"/></xsl:attribute>
											<xsl:attribute name="align"><xsl:value-of select="image/@align"/></xsl:attribute>
											<xsl:attribute name="alt"><xsl:value-of select="image/@alt"/></xsl:attribute>
											<xsl:attribute name="hspace">10</xsl:attribute>
										</img>
									</xsl:if>
									<xsl:value-of select="info" disable-output-escaping="yes"/>
								</td>
							</tr>
						</xsl:otherwise>
					</xsl:choose>
				</table>
			</td>
		</tr>
	
	</table>
</xsl:template>

<xsl:template name="page_horiz">
	<table cellpadding="0" cellspacing="0" width="760" align="center">
		<tr><td align="center"></td></tr>
	</table>
</xsl:template>












</xsl:stylesheet>
